<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>模板语法</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <span>Message: {{ msg }}</span>
        <span v-once>这个将不会改变: {{ msg }}</span>

        <!-- v-html指令：原始html -->
        <p>Using mustaches: {{ rawHtml }}</p>
        <p>Using v-html directive: <span v-html="rawHtml"></span></p>

        <span v-bind:title="tip">使用v-bind指令绑定Title特性(Mustache 语法不能作用在 HTML 特性上)</span>

    </div>


    <script src="template.js"></script>
</body>

</html>